class RegisterController < ApplicationController

  def register
    if request.post? and params[:user]
      @user = User.new(params[:user])

      if @user.save
        flash[:notice] = I18n.t :thank_for_registration
        redirect_to :controller => 'login', :action => :login
      end
    else
      @user = User.new
    end
  end
end
